const mongoose = require("mongoose");

mongoose.connect("mongodb://localhost/test",{useMongoClient:true});
mongoose.Promise = Promise;
const Article = mongoose.model("Article",{
  title:String,
  body:String,
  createTime:Date,
  updateTime:Date,
  accessNumber:Number
});

module.exports = Article;
